package com.risetek.tft.entity;

import javax.persistence.Column;
import javax.persistence.Embeddable;


/**
 * TOperateId entity. @author MyEclipse Persistence Tools
 */
@Embeddable

public class TOperateId  implements java.io.Serializable {


    // Fields    

     private Integer menu;
     private String op;


    // Constructors

    /** default constructor */
    public TOperateId() {
    }

    
    /** full constructor */
    public TOperateId(Integer menu, String op) {
        this.menu = menu;
        this.op = op;
    }

   
    // Property accessors

    @Column(name="MENU", nullable=false)

    public Integer getMenu() {
        return this.menu;
    }
    
    public void setMenu(Integer menu) {
        this.menu = menu;
    }

    @Column(name="OP", nullable=false, length=50)

    public String getOp() {
        return this.op;
    }
    
    public void setOp(String op) {
        this.op = op;
    }
   



   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof TOperateId) ) return false;
		 TOperateId castOther = ( TOperateId ) other; 
         
		 return ( (this.getMenu()==castOther.getMenu()) || ( this.getMenu()!=null && castOther.getMenu()!=null && this.getMenu().equals(castOther.getMenu()) ) )
 && ( (this.getOp()==castOther.getOp()) || ( this.getOp()!=null && castOther.getOp()!=null && this.getOp().equals(castOther.getOp()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getMenu() == null ? 0 : this.getMenu().hashCode() );
         result = 37 * result + ( getOp() == null ? 0 : this.getOp().hashCode() );
         return result;
   }   





}